import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { RecordPwdService } from './record_pwd.service';
import { CreateRecordPwdDto } from './dto/create-record_pwd.dto';
import { UpdateRecordPwdDto } from './dto/update-record_pwd.dto';

@Controller('record-pwd')
export class RecordPwdController {
  constructor(private readonly recordPwdService: RecordPwdService) {}

  @Post()
  create(@Body() createRecordPwdDto: CreateRecordPwdDto) {
    return this.recordPwdService.create(createRecordPwdDto);
  }

  @Get()
  findAll() {
    return this.recordPwdService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.recordPwdService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateRecordPwdDto: UpdateRecordPwdDto) {
    return this.recordPwdService.update(+id, updateRecordPwdDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.recordPwdService.remove(+id);
  }
}
